<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="demo/layout/header :: head(~{::title},~{::link})">
    <meta charset="UTF-8">
    <title>hello.html</title>
    <!-- 引入私有的css -->
    <link rel="stylesheet" th:href="@{/css/index.css}">
</head>
<body>
<!--    欢迎您：<span th:text="${user.usrName}"></span>-->

    <div th:inline="text">
        欢迎您：[[${user.usrName}]]
    </div>

    <div>
        当前日期：<span th:text="${#dates}"></span>
    </div>
</body>
<script th:inline="javascript">
    alert("欢迎您："+[[${user.usrName}]]);

</script>
</html>